﻿namespace XSTDZ.ERP.Domain.Repositories
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.Data.Common;
    using System.Data.Entity;
    using System.Data.Entity.ModelConfiguration;
    using System.Data.Entity.Infrastructure;
    using XSTDZ.ERP.Domain.Models;

    internal partial class UsualFinanceDetail_Mapping : EntityTypeConfiguration<UsualFinanceDetail>
    {
        public UsualFinanceDetail_Mapping()
        {					
    		this.HasKey(t => t.Id);
            this.ToTable("T_FI_UsualFinanceDetail");
            this.Property(t => t.Id).HasColumnName("UsualFinanceDetailID");
            this.Property(t => t.UsualFinanceID).HasColumnName("UsualFinance_ID");
            this.Property(t => t.RefeID).HasColumnName("RefeID");
            this.Property(t => t.ProjectType).HasColumnName("ProjectType");
            this.Property(t => t.OperatorID).HasColumnName("Operator");
            this.Property(t => t.HandlingTime).HasColumnName("HandlingTime");
            this.Property(t => t.GenerateFee).HasColumnName("GenerateFee");
            this.Property(t => t.Remark).HasColumnName("Remark");

            this.HasRequired(t => t.UsualFinance).WithMany(t => t.UsualFinanceDetails).HasForeignKey(d => d.UsualFinanceID);
    	}
    }
}
